package com.lsyw.intergrate.mapper;

import com.lsyw.intergrate.entity.Device;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 设备信息表 Mapper 接口
 * </p>
 *
 * @author 刘磊
 * @since 2023-11-29
 */
@Mapper
public interface DeviceMapper extends BaseMapper<Device> {

    @Select("select * from device where del_flag=0 and code=#{code}")
    Device getByCode(String code);
}
